package Jcat.cduestcbbs.Servlet;

import java.io.IOException;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import Jcat.cduestcbbs.Po.RecordPo;
import Jcat.cduestcbbs.Service.ChatService;

public class ChatServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
	ChatService chatService = new ChatService();

	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		System.out.print("sdf");
		insertChat(req, resp);

	}

	protected void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		insertChat(req, resp);
	}

	public void insertChat(HttpServletRequest req, HttpServletResponse resp) {
		RecordPo record = new RecordPo();

		boolean insertRecord = chatService.insertRecord(record);

	}
}
